<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">配置类型</label>
        <div class="layui-input-block">
            <select name='group_id' class='layui-select full-width'>
                <!--{foreach $groups as $group}-->
                <!--{eq name='$group.value' value='$vo.group_id|default=0'}-->
                <option selected value='{$group.value}'>{$group.name}</option>
                <!--{else}-->
                <option value='{$group.value}'>{$group.name}</option>
                <!--{/eq}-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">中文描述</label>
        <div class="layui-input-block">
            <input type="text" name="title" value="{$vo.title|default=''}" required="required" title="请输入中文描述" placeholder="请输入中文描述"
                class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">配置名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" value="{$vo.name|default=''}" required="required" title="请输入配置名称" placeholder="请输入配置名称" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">数据类型</label>
        <div class="layui-input-block">
            <select name='input_type' class='layui-select full-width'>
                <!--{foreach $types as $type}-->
                <!--{eq name='$type.value' value='$vo.input_type|default=0'}-->
                <option selected value='{$type.value}'>{$type.name}</option>
                <!--{else}-->
                <option value='{$type.value}'>{$type.name}</option>
                <!--{/eq}-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <input type="text" name="remark" value="{$vo.remark|default=''}" title="请输入备注" placeholder="请输入备注" class="layui-input">
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id' />{/if}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

</form>